import java.sql.Connection;
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class MyThread {
	// Basic class for IndexUpdateThread, DepositCheckThread
	// Define connection , depositDBManager, depositTypesDBManager

	private Connection connection;
	private DepositDBManager depositDBManager;
	private DepositTypesDBManager depositTypesDBManager;

	public MyThread(Connection initConnection,
			DepositDBManager initDepositDBManager,
			DepositTypesDBManager initDepositTypesDBManager) {
		// constructor use for IndexUpdateThread
		setConnection(initConnection);
		setDepositDBManager(initDepositDBManager);
		setDepositTypesDBManager(initDepositTypesDBManager);
	}

	public MyThread(Connection initConnection,
			DepositDBManager initDepositDBManager) {
		// constructor use for DepositCheckThread
		setConnection(initConnection);
		setDepositDBManager(initDepositDBManager);
	}

	public DepositTypesDBManager getDepositTypesDBManager() {
		return depositTypesDBManager;
	}

	public void setDepositTypesDBManager(
			DepositTypesDBManager depositTypesDBManager) {
		this.depositTypesDBManager = depositTypesDBManager;
	}

	public DepositDBManager getDepositDBManager() {
		return depositDBManager;
	}

	public void setDepositDBManager(DepositDBManager depositDBManager) {
		this.depositDBManager = depositDBManager;
	}

	public Connection getConnection() {
		return connection;
	}

	public void setConnection(Connection connection) {
		this.connection = connection;
	}

}
